﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true"
    CodeBehind="Images.aspx.cs" Inherits="VINETLIFE.AdminCP.Images" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
            <h2>
                Cập nhật hình ảnh/Video</h2>
            <table class="tablet">
                <tr>
                    <td class="style8">
                        Tiêu đề
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtTitle" runat="server" Width="379px" ValidationGroup="submitGrp"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                            ErrorMessage="*** Cần nhập tiêu đề" ValidationGroup="submitGrp"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Mô tả
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtDetail" TextMode="MultiLine" Width="500px" Height="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Thuộc album
                    </td>
                    <td class="style9">
                        <div style="float: left; vertical-align: middle;">
                            <asp:DropDownList ID="ddlAlbum" runat="server" AppendDataBoundItems="true" Width="250px"
                                AutoPostBack="true" OnSelectedIndexChanged="ddlAlbum_SelectedIndexChanged">
                                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlAlbum"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Thuộc sản phẩm
                    </td>
                    <td class="style9">
                        <div style="float: left; vertical-align: middle;">
                            <asp:DropDownList ID="ddlProduct" runat="server" AppendDataBoundItems="true" Width="250px">
                                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlProduct"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr runat="server" id="trVideo" visible="false">
                    <td class="style8">
                        Video:
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtVideo" runat="server" Width="300px"></asp:TextBox>
                        <span class="note-pro">Đường dẫn mẫu: http://youtu.be/ <span style="color: Red;">PW94w-TU288</span>
                        </span>
                    </td>
                </tr>
                <tr runat="server" id="trHinhAnh" visible="false">
                    <td>
                        Hình ảnh
                    </td>
                    <td>
                        <asp:FileUpload ID="fuImage" runat="server" />
                        &nbsp;
                        <asp:HyperLink ID="hplImage" runat="server" Target="_blank" Visible="False">[Xem 
            ảnh]</asp:HyperLink>
                    </td>
                </tr>
                <tr runat="server" id="Phanloai" visible="false">
                    <td>
                        Phân loại
                    </td>
                    <td>
                        <asp:RadioButton runat="server" ID="rdVideo" GroupName="gtype" />
                        Video
                        <asp:RadioButton runat="server" ID="rdImage" GroupName="gtype" />
                        Hình ảnh
                    </td>
                </tr>
                <tr>
                    <td>
                        Số thứ tự
                    </td>
                    <td>
                        <asp:TextBox ID="txtOrder" runat="server" Width="50px" Text="0"></asp:TextBox>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Nhập số" ControlToValidate="txtOrder"
                            Type="Integer" MinimumValue="0" MaximumValue="100"></asp:RangeValidator>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hiển thị trang chủ
                        <asp:CheckBox runat="server" ID="cbIsHomePage" />
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        &nbsp;
                    </td>
                    <td class="style4">
                        <asp:Button CssClass="button-gg-green" ID="btnSave" runat="server" Text="Lưu" OnClick="btnSave_Click"
                            ValidationGroup="submitGrp" />
                        <asp:Button CssClass="button-gg-green" ID="btnReset" runat="server" Text="Hủy" CausesValidation="False" OnClick="btnReset_Click" />
                    </td>
                </tr>
            </table>
        
</asp:Content>
